define( function() {
    return function (res, local,cont){
        let str = "";
        for(var i=0;i<res.length;i++){
            for(var j=0;j<local.length;j++){
                if(res[i].Id ===local[j].id){
    
                    str +=   `  <tr height="170" index="${res[i].Id}">
                    <td align="center"><input class="check" type="checkbox" ${local[j].flag===0?'':'checked'}></td>
                    <td><img src="${res[i].url}" alt=""></td>
                    <td>${res[i].name}</td>
                    <td><input type="number" class="setNum" value="${local[j].num}" ></td>
                    <td align="center">${res[i].price}</td>
                    <td align="center">${res[i].price * local[j].num}</td>
                    <td class="del" align="center" font-size="14">删除</td>
                </tr>
            `
                }
            }
        }
        cont.html(str);
    }
    
});